package com.atguigu.java.ai.langchain4j.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 锁号表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("locked_registration")
public class LockedRegistration implements Serializable {
    /**
     * 号源ID，主键
     */
    @TableId(type = IdType.AUTO)
    @TableField("lock_id")
    private Long lockId;

    /**
     * 科室名称
     */
    @TableField("dept_name")
    private String deptName;

    /**
     * 科室Id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 医生姓名
     */
    @TableField("doctor_name")
    private String doctorName;

    /**
     * 医生ID，外键
     */
    @TableField("doctor_id")
    private Long doctorId;

    /**
     * 就诊日期
     */
    @TableField("date")
    private String date;

    /**
     * 时间段，如上午、下午、夜晚
     */
    @TableField("time_slot")
    private String timeSlot;

    /**
     * 锁号Id
     */
    @TableField("slot_id")
    private String slotId;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 病人姓名
     */
    @TableField("patient_name")
    private String patientName;

    /**
     * 删除标志，0-正常，1-删除
     */
    @TableField("deleted")
    @TableLogic
    private int deleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time" , fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}